<!DOCTYPE html>
<html lang="zh-Hans-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width" />
    <title>首页模板</title>
    <link href="https://heerey525.github.io/layui-v2.4.3/layui/css/layui.css" rel="stylesheet" type="text/css">
    <link href="/static/web/css/index_style.css" rel="stylesheet" type="text/css">
    <link href="/static/web/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="https://cdn.bootcss.com/animate.css/3.7.2/animate.css" rel="stylesheet">
    <script src="https://heerey525.github.io/layui-v2.4.3/layui-v2.4.4/layui.js"></script>
    <script src="https://cdn.bootcss.com/wow/1.1.2/wow.min.js"></script>

</head>
<body>
<script>
    layui.use(['jquery', 'util'], function () {
        var $ = layui.jquery,
            util = layui.util;
        $(window).load(function () {
            $("#loading").fadeOut(500);
            new WOW().init();
        })
        util.fixbar();;
        $('.next').click(function () {
            $('html,body').animate({
                scrollTop: $('#section1').outerHeight() + 1
            }, 600);
        });
        $('#menu').on('click', function () {
            var mark = $(this).attr('data-mark');
            if (mark === 'false') {
                $(this).removeClass('menu_open').addClass('menu_close');
                //open
                $('#navgation').removeClass('navgation_close').addClass('navgation_open');
                $(this).attr({ 'data-mark': "true" });
            } else {
                $(this).removeClass('menu_close').addClass('menu_open');
                //close
                $('#navgation').removeClass('navgation_open').addClass('navgation_close');
                $(this).attr({ 'data-mark': "false" });
            }
        });

    });
</script>
<div id="menu" class="hover_animation menu_open" data-mark="false">
    <span></span>
    <span></span>
    <span></span>
</div>
<div id="navgation" class="navgation navgation_close">
    <ul class="point">
        <li><a href="#">首页</a></li>
        <li><a href="/article">博客</a></li>
        <li><a href="/message">留言</a></li>
    </ul>
    <div class="logo"><a>Mr.Xky</a></div>
</div>

<div class="section" id="section1">
    <div class="fp-tablecell">
        <div class="page1">
            <div class="nav wow zoomIn" data-wow-duration="2s">
                <h1>xky</h1>
                <p>失败并不可怕，可怕的是没有重新开始的勇气</p>
                <a class="layui-btn layui-btn-normal" style="margin-top: 20px" href="#">Enter Blog</a>
            </div>
            <a class="next wow fadeInUp" data-wow-duration="2s" id="next"></a>
        </div>
    </div>
</div>

<div class="section" id="section2">
    <div class="fp-tablecell">
        <div class="page2">
            <div class="warp-box">
                <div class="new-article">
                    <div class="inner wow fadeInDown" data-wow-delay=".2s">
                        <h1>热门文章</h1>
                        <p>
                            很想给你写封信,告诉你这里的天气.
                            <br>昨夜的那场电影,还有我的心情.
                        </p>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-xs12 layui-col-sm4 layui-col-md4  wow fadeInUp" style="padding: 0 10px">
                        <div class="single-news">
                            <div class="news-head">
                                <img src="/upload/ <%=article[0].imgs%>">
                                <a href="#" class="link"><i class="fa fa-link"></i></a>
                            </div>
                            <div class="news-content">
                                <h4>
                                    <a href="#">
                                     <%=article[0].name%>
                                    </a>
                                </h4>
                                <div class="date">
                                    <%= moment(article[0].create_time).format('YYYY-MM-DD') %>
                                </div>
                                <p>
                                    <%-article[0].desc%>
                                </p>
                                <a href="/read/<%=article[0]._id%>" class="btn">
                                    阅读更多
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs12 layui-col-sm4 layui-col-md4  wow fadeInUp" data-wow-delay=".2s" style="padding: 0 10px">
                        <div class="single-news">
                            <div class="news-head">
                                <img src="/upload/ <%=article[1].imgs%>">
                                <a href="#" class="link"><i class="fa fa-link"></i></a>
                            </div>
                            <div class="news-content">
                                <h4>
                                    <a href="#">
                                        <%=article[1].name%>
                                    </a>
                                </h4>
                                <div class="date">
                                    <%= moment(article[1].create_time).format('YYYY-MM-DD') %>
                                </div>
                                <p>
                                    <%-article[1].desc%>
                                </p>
                                <a href="/read/<%=article[1]._id%>" class="btn">
                                    阅读更多
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs12 layui-col-sm4 layui-col-md4  wow fadeInUp" data-wow-delay=".4s" style="padding: 0 10px">
                        <div class="single-news">
                            <div class="news-head">
                                <img src="/upload/ <%=article[2].imgs%>">
                                <a href="#" class="link"><i class="fa fa-link"></i></a>
                            </div>
                            <div class="news-content">
                                <h4>
                                    <a href="#">
                                        <%=article[2].name%>
                                    </a>
                                </h4>
                                <div class="date">
                                    <%= moment(article[2].create_time).format('YYYY-MM-DD') %>
                                </div>
                                <p>
                                    <%-article[2].desc%>
                                </p>
                                <a href="/read/<%=article[2]._id%>" class="btn">
                                    阅读更多
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="section" id="section3">
    <div class="fp-tablecell">
        <div class="page3">
            <div class="warp-box">
                <div class="warp">
                    <div class="inner">
                        <div class="links">
                            <ul>
                                <li class="wow fadeInLeft"><a href="#">关于</a></li>
                                <li class="wow fadeInRight"><a href="#">+友情链接</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="section" id="section4">
    <div class="fp-tablecell">
        <div class="page4">
            <div class="warp-box">
                <div class="about">
                    <div class="inner">
                        <h1 class="wow fadeInLeft">次元使者</h1>
                        <p class="wow fadeInRight">
                            爱好游戏，动漫。闲来无事喜欢在一些不健康的场所虚度光阴，撸起代码就会废寝忘食。
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<footer class="footer wow fadeInUp" id="contact">
    <div class="footer-top">
        <div class="container">
            <div class="layui-row">
                <div class="layui-col-xs12 layui-col-sm6 layui-col-md4">
                    <div class="single-widget about">
                        <div class="footer-logo">
                            <h2>解凯洋</h2>
                        </div>
                        <p>剑气纵横三万里，一剑光寒十九洲。</p>
                        <div class="button">
                            <a href="#" class="btn layui-btn layui-btn-normal">About Me</a>
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs12 layui-col-sm6 layui-col-md4">
                    <div class="single-widget">
                        <h2>相关链接</h2>
                        <ul class="social-icon">
                            <li class="active"><a href="#"><i class="fa fa-book"></i>博文</a></li>
                            <li class="active"><a href="#"><i class="fa fa-comments"></i>留言</a></li>
                            <li class="active"><a href="#"><i class="fa fa-share"></i>资源</a></li>
                            <li class="active"><a href="#"><i class="fa fa-snowflake-o"></i>日记</a></li>
                            <li class="active"><a href="#"><i class="fa fa-files-o"></i>归档</a></li>
                        </ul>
                    </div>
                </div>
                <div class="layui-col-xs12 layui-col-sm12 layui-col-md4">
                    <div class="single-widget contact">
                        <h2>联系我</h2>
                        <ul class="list">
                            <li><i class="fa fa-map"></i>地址: 杭州市滨江区东方花城</li>
                            <li><i class="fa fa-qq"></i>QQ: 975278060 </li>
                            <li><i class="fa fa-envelope"></i>邮箱: 975278060@qq.com</li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="copyright">
        <div class="container">
            <div class="layui-row">
                <div class="layui-col-xs12 layui-col-sm12 layui-col-md12 text-center">
                    <p>Copyright &copy; 2018-2018 解凯洋 All Rights Reserved V.3.1.3 蜀ICP备18008600号</p>
                </div>
            </div>
        </div>
    </div>
</footer>

</body>
</html>
